<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

use Think\Model;

class PingguAddMoney
{
    public $login = true; //是否需要登录才能访问该接口
    public $title = "健康评估获得鲸币接口";
    public $group = '任务';
    public $desc = "";

    public $input = [
    ];

    public $output = [
    ];



    public function run($param, $uid)
    {
        $flag = M('eyes_task_log')->where(['taskid' => 8, 'userid' => $uid, 'record_date' => date('Y-m-d')])->find();
        if($flag) return true;
        OE('user')->addEyesMoney($uid, 8);

        return [

        ];
    }
}
